package com.ohs.mapper.admin;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ohs.pojo.Admin;
import com.ohs.pojo.Product;
import com.ohs.pojo.User;

import java.util.List;

public interface AdminMapper extends BaseMapper<Admin> {

    //查询所有的商品
    List<Product> AdminFindAllProduct();

    //添加商品
    int addProduct(Product product);

    Product findProductByProId(Integer proId);

    int updateProductByProId(Product product);

    int deleteProductByProId(Integer proId);

    //查找所有用户
    List<User> findAllUsers();

}
